<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/common/tags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title><sitemesh:write property="title"/></title>

<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="Cache-Control" content="no-store" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />

<script src="${ctx}/resources/js/jquery.min.js" type="text/javascript"></script>
<script src="${ctx}/resources/script/pagination.js" type="text/javascript"></script>
<script src="${ctx}/resources/script/main.js" type="text/javascript"></script>
<link href="${ctx }/resources/css/main.css" rel="stylesheet" type="text/css"/></head>
<link href="${ctx }/resources/css/paginator.css" rel="stylesheet" type="text/css"/></head>
<script type="text/javascript">
    var ctx = '${ctx}';
    $(function (){
    	var urlstr = location.href;
    	 //alert((urlstr + '/').indexOf($(this).attr('href')));
    	 var urlstatus=false;
    	 
    	$(".top_nav_list a").each(function () {
    	    
    	  if ((urlstr + '/').indexOf($(this).attr('href')) > -1&&$(this).attr('href')!='') {
    	    $(this).addClass('cur'); urlstatus = true;
    	  } else {
    	    $(this).removeClass('cur');
    	  }
    	});
    	if (!urlstatus) {$(".top_nav_list a").eq(0).addClass('cur'); }
    });   
   
</script>
<sitemesh:write property="head"/>



<style>

        .cur{ background:#0A985D; font-weight:bold;}

</style> 



<body>
    <div id="header">
        <div class="header_top">
            <div class="header_container">
                <div class="header_bar">
                </div>
                <div class="logo">
                    <img  src="../resources/images/logo.gif" class="logo"  >
                    <span>
                         <c:choose>
                             <c:when test="${empty sessionScope.user }">
                                 <a href="/login.htm" >登陆</a>
                                 <a href="/register.htm">注册</a>
                             </c:when>
                             <c:otherwise>
                                 ${sessionScope.user }
                                 <a href="/logout.htm">退出</a>
                             </c:otherwise>
                         </c:choose>
                                            
                    </span>                                     
                </div>     
            </div>
        </div>
        <div class="header_bottom">
            <div class="top_nav">
                <ul class="top_nav_list"id="menu">
                    <li><a href="/manager.htm" class="nav_node">管理处</a></li>
                    <li><a href="/station.htm" class="nav_node">收费站详情</a></li>
                    <li><a href="/check.htm" class="nav_node">检测</a></li>
                    <li><a href="/record1.htm" class="nav_node">记录1</a></li>
                    <li><a href="/record2.htm" class="nav_node">记录2</a></li>
                    <li><a href="/configure.htm" class="nav_node">设备配置</a></li>
                    <li><a href="/detail.htm" class="nav_node">本软件详情</a></li>
                </ul>
            </div>
        </div>
    </div>
    <div id="main">
        <sitemesh:write property="body"/>
    </div>
    <div id="bg_overlay"></div>
    <div id="dialogContent_div"></div>
</body>
</html>